#region License

// Copyright (c) 2013, ClearCanvas Inc.
// All rights reserved.
// http://www.clearcanvas.ca
//
// This file is part of the ClearCanvas RIS/PACS open source project.
//
// The ClearCanvas RIS/PACS open source project is free software: you can
// redistribute it and/or modify it under the terms of the GNU General Public
// License as published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// The ClearCanvas RIS/PACS open source project is distributed in the hope that it
// will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
// Public License for more details.
//
// You should have received a copy of the GNU General Public License along with
// the ClearCanvas RIS/PACS open source project.  If not, see
// <http://www.gnu.org/licenses/>.

#endregion

//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:2.0.50727.42
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace ClearCanvas.Server.ShredHost
{
    using System.Runtime.Serialization;
    
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")]
    [System.Runtime.Serialization.DataContractAttribute()]
    public partial class WcfDataShred : object, System.Runtime.Serialization.IExtensibleDataObject
    {
        
        private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
        
        private string _descriptionField;
        
        private int _idField;
        
        private bool _isRunningField;
        
        private string _nameField;
        
        public System.Runtime.Serialization.ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)]
        public string _description
        {
            get
            {
                return this._descriptionField;
            }
            set
            {
                this._descriptionField = value;
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)]
        public int _id
        {
            get
            {
                return this._idField;
            }
            set
            {
                this._idField = value;
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)]
        public bool _isRunning
        {
            get
            {
                return this._isRunningField;
            }
            set
            {
                this._isRunningField = value;
            }
        }
        
        [System.Runtime.Serialization.DataMemberAttribute(IsRequired=true)]
        public string _name
        {
            get
            {
                return this._nameField;
            }
            set
            {
                this._nameField = value;
            }
        }
    }
}


[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
[System.ServiceModel.ServiceContractAttribute(ConfigurationName="IShredHost")]
public interface IShredHost
{
    
    [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IShredHost/GetShreds", ReplyAction="http://tempuri.org/IShredHost/GetShredsResponse")]
    ClearCanvas.Server.ShredHost.WcfDataShred[] GetShreds();
    
    [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IShredHost/StartShred", ReplyAction="http://tempuri.org/IShredHost/StartShredResponse")]
    bool StartShred(ClearCanvas.Server.ShredHost.WcfDataShred shred);
    
    [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IShredHost/StopShred", ReplyAction="http://tempuri.org/IShredHost/StopShredResponse")]
    bool StopShred(ClearCanvas.Server.ShredHost.WcfDataShred shred);
}

[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
public interface IShredHostChannel : IShredHost, System.ServiceModel.IClientChannel
{
}

[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
public partial class ShredHostClient : System.ServiceModel.ClientBase<IShredHost>, IShredHost
{
    
    public ShredHostClient()
    {
    }
    
    public ShredHostClient(string endpointConfigurationName) : 
            base(endpointConfigurationName)
    {
    }
    
    public ShredHostClient(string endpointConfigurationName, string remoteAddress) : 
            base(endpointConfigurationName, remoteAddress)
    {
    }
    
    public ShredHostClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : 
            base(endpointConfigurationName, remoteAddress)
    {
    }
    
    public ShredHostClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : 
            base(binding, remoteAddress)
    {
    }
    
    public ClearCanvas.Server.ShredHost.WcfDataShred[] GetShreds()
    {
        return base.Channel.GetShreds();
    }
    
    public bool StartShred(ClearCanvas.Server.ShredHost.WcfDataShred shred)
    {
        return base.Channel.StartShred(shred);
    }
    
    public bool StopShred(ClearCanvas.Server.ShredHost.WcfDataShred shred)
    {
        return base.Channel.StopShred(shred);
    }
}
